<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1
 * @license    GNU/GPL
*/
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.view');
 
/**
 * HTML View class for the SummerCamps Component
 *
 * @package    SummerCamps
 */
//Model "SummerCampsModelSummerCamps" is loaded into this 
//"SummerCampsViewSummerCamps" because they share the same name. 
//
class SummerCampsViewSummerCamps extends JView
{
	
	/**
	 * 
	 * The View pulls the data from the model and feeds it into the template. 
	 * It never manipulates the data - only grabs it to display it. 
	 * @param unknown_type $tpl
	 */
    function display($tpl = null)
    {
        $model = &$this->getModel();
		$items =& $model->getData();// FOOBAR GETS NO ITEMS!
        $this->assignRef( 'items', $items ); //pushes data into the template
 
        parent::display($tpl);
    }
}